"DESCRIPTION 1"="This plug-in can be used to add two commands to the context menu that appears if you right-click ANY file in the Explorer."
"DESCRIPTION 2"="First, enter a name for the command (e.g. "View with Notepad") in the field "Name". Then enter the command that should be executed if this item is selected in the field "Command". The name of the current file can be inserted through "%1" (e.g. notepad.exe "%1")."
"DESCRIPTION 3"="To remove the command again, clear both the "Name" and the "Command" field and press "Apply"."
"DESCRIPTION 4"="An example:"
"DESCRIPTION 5"="1) Name: View with Notepad"
"DESCRIPTION 6"="1) Command: notepad.exe "%1""
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Thanks to Jimmy [mailto:j.helena@attglobal.net] for the idea."
sPath1="HKCR\*\Shell\XQXSETCMD1\"
sPath2="HKCR\*\Shell\XQXSETCMD2\"
sCMD="Command\@"
Sub Plugin_Initialize
s=RegReadValue(sPath1 & sCMD)
if len(s)>0 then
s=RegReadValue(sPath1 & "@")
SetUIElement 1,s
s=RegReadValue(sPath1 & sCMD)
SetUIElement 2,s
end if
s=RegReadValue(sPath2 & sCMD)
if len(s)>0 then
s=RegReadValue(sPath2 & "@")
SetUIElement 3,s
s=RegReadValue(sPath2 & sCMD)
SetUIElement 4,s
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s1=GetUIElement(1)
s2=GetUIElement(2)
if len(s1)>0 or len(s2)>0 then
Call RegWriteValue(sPath1 & sCMD,s2,1)
Call RegWriteValue(sPath1 & "@",s1,1)
else
if IsEmpty(RegReadValue(sPath1 & sCMD))=false then
Call RegDeletePath(sPath1 & "Command")
Call RegDeletePath(sPath1)
end if
end if
s1=GetUIElement(3)
s2=GetUIElement(4)
if len(s1)>0 or len(s2)>0 then
Call RegWriteValue(sPath2 & sCMD,s2,1)
Call RegWriteValue(sPath2 & "@",s1,1)
else
if IsEmpty(RegReadValue(sPath2 & sCMD))=false then